package com.axend.aerosense.room.ui.fragment;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.axend.aerosense.base.fragment.MvvmBaseFragment;
import com.axend.aerosense.base.viewmodel.BaseViewModel;
import com.axend.aerosense.common.util.FragmentUtil;
import com.axend.aerosense.room.R;
import com.axend.aerosense.room.databinding.RoomFragmentSceneLearnKnowBinding;
import com.axend.aerosense.room.ui.activity.RoomSceneLearnActivity;
import com.blankj.utilcode.util.ToastUtils;

import org.jetbrains.annotations.NotNull;

public class RoomSceneLearnKnowFragment extends MvvmBaseFragment<RoomFragmentSceneLearnKnowBinding, BaseViewModel> {
    @Override
    public void onViewCreated(@NonNull @NotNull View view, @Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        initView();
    }
    public void initView(){
        viewDataBinding.roomButLearn.setOnClickListener((v)->{
//            ToastUtils.showShort("roomBut");
            RoomSceneLearningFragment fragment = RoomSceneLearningFragment.getInstance();
            FragmentUtil.add(getActivity(), ((RoomSceneLearnActivity)getActivity()).getContentId(), fragment, this, true);
        });

    }
    public static RoomSceneLearnKnowFragment getInstance(){
        RoomSceneLearnKnowFragment fragment = new RoomSceneLearnKnowFragment();
        return fragment;
    }
    @Override
    public int getLayoutId() {
        return R.layout.room_fragment_scene_learn_know;
    }

    @Override
    public int getBindingVariable() {
        return 0;
    }

    @Override
    protected BaseViewModel getViewModel() {
        return null;
    }

    @Override
    protected void onRetryBtnClick() {

    }
}
